package com.heima.feign.article;

import com.heima.feign.article.fallback.IArticleClientImpl;
import com.heima.model.article.dtos.ArticleDto;
import com.heima.model.common.dtos.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author 陈辉
 * @data 2023 11:19
 */
@FeignClient(value = "leadnews-article",fallback = IArticleClientImpl.class)        //对外暴露feign远程调用接口
public interface IArticleClient {

    @PostMapping("/api/v1/article/save")
    public ResponseResult saveOrUpdate(@RequestBody ArticleDto articleDto);
}
